{% load i18n lfs_tags %}

<div id="price-criteria">

    <h1>
        {% trans 'Edit criteria for' %} {{payment_price.price|currency:request}}
    </h1>

    <form action="{% url lfs_manage_save_payment_price_criteria payment_price.id %}"
          method="post">

        <div class="top-buttons">
            <a href="{% url lfs_add_criterion %}"
               class="criterion-add-first-button">
                <img src="{{ STATIC_URL }}icons/add.png" /
                     alt="Add" />

                {% trans 'Add criterion' %}
            </a>
        </div>

        <table class="criteria">
            {% for criterion in criteria %}
                {{criterion|safe}}
            {% endfor %}
        </table>

        <div class="buttons">
            <input class="ajax-save-button button"
                   type="submit"
                   value="{% trans 'Save criteria' %}" />
        </div>

    </form>
</div>